package com.ijiuchuang.jc_localization.view.adapter;

import android.content.Context;

import com.ijiuchuang.jc_localization.R;
import com.ijiuchuang.jc_localization.bean.entity.OpenSourceLicense;
import com.ijiuchuang.jc_localization.tools.adapter.ViewHolder;
import com.ijiuchuang.jc_localization.tools.adapter.recyclerview.CommonAdapter;

import java.util.List;

/**
 * Created by Veev on 2016/6/13
 *
 * @link 384506557@qq.com
 */
public class OpenSourceRecyclerAdapter extends CommonAdapter<OpenSourceLicense> {

    public OpenSourceRecyclerAdapter(Context context, int layoutId, List<OpenSourceLicense> datas) {
        super(context, layoutId, datas);
    }

    @Override
    public void convert(final ViewHolder holder, final OpenSourceLicense sourceLicense) {
        holder.setText(R.id.recycler_item_open_source_title, sourceLicense.getName());
        holder.setText(R.id.recycler_item_open_source_description, sourceLicense.getDescription());
    }
}
